<?php

require_once 'PHPUnit/Extensions/SeleniumTestCase.php';

class Example extends PHPUnit_Extensions_SeleniumTestCase
{
  protected function setUp()
  {
    $this->setBrowser("*firefox C:/Program Files (x86)/Mozilla Firefox/firefox.exe");
    $this->setBrowserUrl("http://localhost/CRUDPHP");
  }

  public function testMyTestCase()
  {
    $this->open("/CRUDPHP/");
    $this->click("link=Alta Registros");
    $this->waitForPageToLoad("30000");
    $this->type("txtMatriucla", "22222222");
    $this->type("txtCarrera", "xxxxxxxxxxx");
    $this->click("//input[@value='AGREGAR']");
    $this->waitForPageToLoad("30000");
    try {
        $this->assertTrue($this->isTextPresent(""));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
        array_push($this->verificationErrors, $e->toString());
    }
  }
}
?>